Skip to content

Normalize google-discovery plugin secret/connection refs#521

Draft
RhysSullivan wants to merge 1 commit intors/normalize-mcpfrom
rs/normalize-google-discovery
Draft

Normalize google-discovery plugin secret/connection refs#521
RhysSullivan wants to merge 1 commit intors/normalize-mcpfrom
rs/normalize-google-discovery

Conversation

@RhysSullivan
Copy link
Copy Markdown
Owner

Move secret/connection references out of the JSON
google_discovery_source.config column into:

  • Flat columns on google_discovery_source: auth_kind,
    auth_connection_id, auth_client_id_secret_id,
    auth_client_secret_secret_id, auth_scopes (each indexed where it
    carries a ref). Replaces the GoogleDiscoveryAuth json.
  • google_discovery_source_credential_header /
    google_discovery_source_credential_query_param: child tables for the
    optional GoogleDiscoveryFetchCredentials SecretBackedMap entries.

The remaining structural fields (discoveryUrl, service, version,
rootUrl, servicePath) stay in config as JSON — they're plugin-private
and never carry refs. google_discovery_binding stays JSON too: the
GoogleDiscoveryMethodBinding has no refs, and method input/output
schemas are arbitrary user data.

Plugin gains usagesForSecret / usagesForConnection. Migration 0010
backfills via json_extract / json_each, then strips the extracted
fields with json_remove. Three migration tests cover backfill from a
hand-seeded pre-migration DB; one plugin-level test covers usage
fan-out across auth_*_secret_id and auth_connection_id.

Copy link
Copy Markdown
Owner Author

RhysSullivan commented May 4, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 4, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud 41b0ace May 04 2026, 07:54 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 4, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 41b0ace Commit Preview URL

Branch Preview URL
May 04 2026, 07:52 PM

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 4, 2026

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@521

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@521

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@521

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@521

@executor-js/storage-core

npm i https://pkg.pr.new/@executor-js/storage-core@521

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@521

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@521

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@521

@executor-js/plugin-google-discovery

npm i https://pkg.pr.new/@executor-js/plugin-google-discovery@521

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@521

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@521

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@521

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@521

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@521

executor

npm i https://pkg.pr.new/executor@521

commit: 41b0ace

Move secret/connection references out of the JSON
google_discovery_source.config column into:
- Flat columns on google_discovery_source: auth_kind,
  auth_connection_id, auth_client_id_secret_id,
  auth_client_secret_secret_id, auth_scopes (each indexed where it
  carries a ref). Replaces the GoogleDiscoveryAuth json.
- google_discovery_source_credential_header /
  google_discovery_source_credential_query_param: child tables for the
  optional GoogleDiscoveryFetchCredentials SecretBackedMap entries.

The remaining structural fields (discoveryUrl, service, version,
rootUrl, servicePath) stay in `config` as JSON — they're plugin-private
and never carry refs. google_discovery_binding stays JSON too: the
GoogleDiscoveryMethodBinding has no refs, and method input/output
schemas are arbitrary user data.

Plugin gains usagesForSecret / usagesForConnection. Migration 0010
backfills via json_extract / json_each, then strips the extracted
fields with json_remove. Three migration tests cover backfill from a
hand-seeded pre-migration DB; one plugin-level test covers usage
fan-out across auth_*_secret_id and auth_connection_id.
@RhysSullivan RhysSullivan force-pushed the rs/normalize-google-discovery branch from f2d49d3 to 41b0ace Compare May 4, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant